package com.tydic.common.core.enums;

/**
 * 是否是边民代表枚举值
 *
 * @author zr
 * @date 2023-10-17 10:42
 */
public enum AgentEnableEnum {

    ENABLE("0", "是"),

    DISABLE("1", "否"),
    ;
    private final String status;
    private final String msg;

    AgentEnableEnum(String status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public static AgentEnableEnum match(String status) {
        AgentEnableEnum result = null;
        for (AgentEnableEnum s : values()) {
            if (s.getStatus().equals(status)) {
                result = s;
                break;
            }
        }
        return result;
    }

    public String getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
